export type ListRequest ={
  page: number,
  size: number,
  model?: string,//产品型号
  client_id?:number,//客户id
}

export type AddRequest ={
  id?:number,//产品id
  client_id?: number,//客户id
  client_name: string,//客户名称
  model: string//产品型号
  name: string//产品品名
  specs: string//产品规格
}

export type RemoveRequest = {
  id: number
}

export type Product = {
  id: number,
  client_id: number, //客户id
  client_name: string, //客户
  model: string,//产品型号
  name: string,//产品品名
  specs: string,//产品规格
  prices?: ProductPriceItem[],//产品单价
  created_at: number
}

export type ProductPriceItem = {
  price: number; //产品单价
  created_at: number; //添加日期
}

export interface DownloadExcelPrams {
  columns: { title: string, key: string, width: number }[];
  rows: object[];
  name: string,
  company: string
}